//
//  QPointsOneCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/3/17.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QPointsOneCell.h"
@interface QPointsOneCell()
@property (weak, nonatomic) IBOutlet UILabel *signDayLab;
@property (weak, nonatomic) IBOutlet UILabel *pointLab;

@end
@implementation QPointsOneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _signDayLab.layer.borderWidth = 0.5;
    _signDayLab.layer.masksToBounds  = YES;
    _signDayLab.layer.cornerRadius = 4;
    _signDayLab.layer.borderColor = [UIColor whiteColor].CGColor;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setModel:(QPointInfoListModel *)model{
    _model=model;
    _signDayLab.text = [NSString stringWithFormat:@"已连续签到%@天",_model.several_days];
    _pointLab.text = _model.curr_integration;
}

- (IBAction)webAction:(id)sender {
    if (self.PointsBlock) {
        self.PointsBlock();
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
